﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AddStaff.aspx.cs" Inherits="Module_StaffManger_AddStaff" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <ext:PageManager ID="PageManager1" runat="server" AutoSizePanelID="Panel1" />
    <ext:Panel ID="Panel1" runat="server" BodyPadding="5px" EnableBackgroundColor="true"
        ShowBorder="false" ShowHeader="false" Title="Panel" Layout="Fit">
        <Toolbars>
            <ext:Toolbar runat="server">
                <Items>
                    <ext:Button ID="btnSave" runat="server" Text="保存" OnClick="btnSave_Click">
                    </ext:Button>
                    <ext:Button ID="Button2" runat="server" Text="关闭">
                    </ext:Button>
                </Items>
            </ext:Toolbar>
        </Toolbars>
        <Items>
            <ext:Form ID="Form2" runat="server" BodyPadding="0px" EnableBackgroundColor="true"
                ShowBorder="false" ShowHeader="false" Title="Form">
                <Rows>
                    <ext:FormRow ID="FormRow1" runat="server">
                        <Items>
                            <ext:TextBox ID="StaffName" runat="server" Label="员工名称" Text="">
                            </ext:TextBox>
                            <ext:DropDownList ID="sex" runat="server" Label="员工性别">
                                <ext:ListItem Text="男" Value="男" />
                                <ext:ListItem Text="女" Value="女" />
                            </ext:DropDownList>
                        </Items>
                    </ext:FormRow>
                    <ext:FormRow ID="FormRow2" runat="server">
                        <Items>
                            <ext:TextBox ID="Tel" runat="server" Label="联系电话" Text="">
                            </ext:TextBox>
                            <ext:DropDownList ID="Department" runat="server" Label="所属部门">
                            </ext:DropDownList>
                        </Items>
                    </ext:FormRow>
                    <ext:FormRow ID="FormRow7" runat="server">
                        <Items>
                            <ext:TextBox ID="TelPhone" runat="server" Label="手机号码" Text="">
                            </ext:TextBox>
                            <ext:TextBox ID="IDCard" runat="server" Label="身份证号码" Text="">
                            </ext:TextBox>
                        </Items>
                    </ext:FormRow>
                    <ext:FormRow ID="FormRow6" runat="server">
                        <Items>
                           <ext:DatePicker ID="Birdthday" runat="server" Label="出生年月日" DateFormatString="yyyy-MM-dd">
                            </ext:DatePicker>
                            <ext:DatePicker ID="InTime" runat="server" Label="入职时间" DateFormatString="yyyy-MM-dd">
                            </ext:DatePicker>
                        </Items>
                    </ext:FormRow>
                    <ext:FormRow ID="FormRow8" runat="server">
                        <Items>
                            <ext:TextBox ID="LinkMan" runat="server" Label="紧急联系人" Text="">
                            </ext:TextBox>
                            <ext:TextBox ID="LinkNum" runat="server" Label="紧急联系电话" Text="">
                            </ext:TextBox>
                        </Items>
                    </ext:FormRow>
                    <ext:FormRow ID="FormRow10" runat="server">
                        <Items>
                            <ext:DropDownList ID="Marital" runat="server" Label="婚姻状况">
                                <ext:ListItem Text="已婚" Value="已婚" />
                                <ext:ListItem Text="未婚" Value="未婚" />
                            </ext:DropDownList>
                            <ext:TextBox ID="HomeAddress" runat="server" Label="家庭地址" Text="">
                            </ext:TextBox>
                        </Items>
                    </ext:FormRow>
                    <ext:FormRow ID="FormRow12" runat="server">
                        <Items>
                            <ext:TextBox ID="QQ" runat="server" Label="QQ" Text="">
                            </ext:TextBox>
                            <ext:TextBox ID="mail" runat="server" Label="邮箱" Text="">
                            </ext:TextBox>
                        </Items>
                    </ext:FormRow>
                    <ext:FormRow ID="FormRow3" runat="server">
                        <Items>
                            <ext:TextBox ID="Address" runat="server" Label="现在居住地址" Text="">
                            </ext:TextBox>
                            <ext:TextBox ID="Hometown" runat="server" Label="籍贯" Text="">
                            </ext:TextBox>
                        </Items>
                    </ext:FormRow>
                    <ext:FormRow ID="FormRow5" runat="server" ColumnWidths="50% 25% 25%">
                        <Items>
                            <ext:TriggerBox ID="RoleName" runat="server" Label="角色名称" TriggerIcon="Search" 
                                OnTriggerClick="RoleName_TriggerClick">
                            </ext:TriggerBox>
                            <ext:CheckBox ID="IsDeparture" runat="server" Label="设置离职" Text="离职员工"  AutoPostBack="true"
                                ShowLabel="false" OnCheckedChanged="IsDeparture_CheckedChanged">
                            </ext:CheckBox>
                            <ext:CheckBox ID="IsHead" runat="server" Label="设置离职" Text="部门经理" ShowLabel="false" Hidden="true">
                            </ext:CheckBox>
                        </Items>
                    </ext:FormRow>
                    <ext:FormRow ID="FormRow9" runat="server">
                        <Items>
                            <ext:TextBox ID="StaffID" runat="server" Label="员工编号" Text="" Hidden="true" >
                            </ext:TextBox>
                            <ext:TextBox ID="RoleID" runat="server" Label="角色编号" Text="" Hidden="true" >
                            </ext:TextBox>
                        </Items>
                    </ext:FormRow>
                    <ext:FormRow ID="FormRow4" runat="server">
                        <Items>
                            <ext:TextArea ID="Remark" runat="server" Height="250px" Label="备注" Text="">
                            </ext:TextArea>
                        </Items>
                    </ext:FormRow>
                </Rows>
            </ext:Form>
        </Items>
    </ext:Panel>



    <ext:Window ID="Window1" runat="server" Height="500px" IsModal="true" Popup="false" EnableIFrame ="true" 
        Title="Window" Width="200px">
    </ext:Window>


    </form>
</body>
</html>
